<?php
class Cart{
	public static function getQuatity(){
		$gids=$_SESSION['gids'];
		$counts=$_SESSION['counts'];
		$sl = 0;
		if($gids && count($gids) > 0){
			for ($i=0; $i<count($gids); $i++){
				$sl += $counts[$i];
			}
		}
		return $sl;
	}
}
?>